package com.dodoke.mapper;

import com.dodoke.beans.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Component;

import java.util.List;


@Repository
public interface UserMapper {

    List<User> selectAll();

    User getUserById(int id);

    User getUserByUsernameAndPassword(@Param("username") String username, @Param("password") String password);
}
